<?php
namespace app\serverfund\service\fund;

use \app\manage\service\ApiBase;
/**
 * 用户的资金借款日志
 * @author adv30 <adv30@126.com> 2017年6月22日9:37:32
 */
class FundBorrowLog extends ApiBase
{
    protected $fundBorrowLogValidate = '\app\serverfund\validate\FundBorrowLog';
    protected $fundBorrowLogLogic = '\app\serverfund\logic\FundBorrowLog';
    // 获取所资金借款日志(分页)
    public function list(): array
    {
        $data = $this->haveIssetReceiveData(['page'=>'1', 'list_rows'=>'']);
        return $this->stepRun($data, 'list', 'list');
    }
    // 获取某些user_ids的的资金借款日志(分页)
    public function listByUserIds(): array
    {
        $data = $this->haveIssetReceiveData(['page'=>'1', 'list_rows'=>'', 'user_ids'=>' ']);
        return $this->stepRun($data, 'listByUserIds', 'listByUserIds');
    }
    // 获取某个用户某个状态的资金借款日志分页数据
    public function listByUserType(): array
    {
        $data = $this->haveIssetReceiveData(['user_id'=>'0', 'refund_status'=>' ', 'page'=>'1', 'list_rows'=>'']);
        return $this->stepRun($data, 'listByUserType', 'listByUserType');
    }
}